package com.chenxingnet.dao;

import com.chenxingnet.dto.Usercontrol;
import com.chenxingnet.dto.UsercontrolExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface UsercontrolMapper {
    int countByExample(UsercontrolExample example);

    int deleteByExample(UsercontrolExample example);

    int deleteByPrimaryKey(Integer uid);

    int insert(Usercontrol record);

    int insertSelective(Usercontrol record);

    List<Usercontrol> selectByExample(UsercontrolExample example);

    Usercontrol selectByPrimaryKey(Integer uid);

    int updateByExampleSelective(@Param("record") Usercontrol record, @Param("example") UsercontrolExample example);

    int updateByExample(@Param("record") Usercontrol record, @Param("example") UsercontrolExample example);

    int updateByPrimaryKeySelective(Usercontrol record);

    int updateByPrimaryKey(Usercontrol record);
    
    int insertSelectiveMy(Usercontrol record);
    
    Usercontrol userLogin(@Param("uAccount")String uAccount,@Param("uPassword")String uPassword);
    
    int updatePwd(@Param("record")Usercontrol record);

	List<Usercontrol> userTest(@Param("username")String username);
	
	long getCount();
	
	List<Usercontrol> showUser(@Param("startPos")int startPos,@Param("pageSize")int pageSize);

}